<!--

     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file
     distributed with this work for additional information
     regarding copyright ownership.  The ASF licenses this file
     to you under the Apache License, Version 2.0 (the
     "License"); you may not use this file except in compliance
     with the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
     under the License.

-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- **************************************************************** -->
<!-- *  PLEASE KEEP COMPLICATED EXPRESSIONS OUT OF THESE TEMPLATES, * -->
<!-- *  i.e. only iterate & print data where possible. Thanks, Jez. * -->
<!-- **************************************************************** -->

<html>
<head>
    <!-- Generated by groovydoc (2.4.5) on Mon Sep 12 08:35:16 CEST 2016 -->
    <title>CompositeFuture (Groovy Documentation)</title>
    <meta name="date" content="2016-09-12">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="../../../../groovy.ico" type="image/x-icon" rel="shortcut icon">
    <link href="../../../../groovy.ico" type="image/x-icon" rel="icon">
    <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

<body class="center">
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
    parent.document.title="CompositeFuture (Groovy Documentation)";
}
//-->
</script>
<noscript>
    <div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
    <!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
    <!--   -->
</a>
    <ul class="navList" title="Navigation">
        <li><a href="../../../../overview-summary.html">Overview</a></li>
        <li><a href="package-summary.html">Package</a></li>
        <li class="navBarCell1Rev">Class</li>
        <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
        <li><a href="../../../../index-all.html">Index</a></li>
        <li><a href="../../../../help-doc.html">Help</a></li>
    </ul>
</div>

<div class="subNav">
    <div>
        <ul class="navList">
            <li><a href="../../../../index.html?io/vertx/groovy/core/CompositeFuture" target="_top">Frames</a></li>
            <li><a href="CompositeFuture.html" target="_top">No Frames</a></li>
        </ul>
    </div>
    <div>
        <ul class="subNavList">
            <li>Summary:&nbsp;</li>
            Nested&nbsp;&nbsp;&nbsp;Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#constructor_summary">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_summary">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
        <ul class="subNavList">
            <li>&nbsp;|&nbsp;Detail:&nbsp;</li>
            Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#constructor_detail">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_detail">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
    </div>
    <a name="skip-navbar_top">
        <!--   -->
    </a></div>
<!-- ========= END OF TOP NAVBAR ========= -->

<!-- ======== START OF CLASS DATA ======== -->
<div class="header">

    <div class="subTitle">Package: <strong>io.vertx.groovy.core</strong></div>

    <h2 title="[Groovy] Class CompositeFuture" class="title">[Groovy] Class CompositeFuture</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><ul class="inheritance"></ul></li><li><ul class="inheritance"></ul></li><li>io.vertx.groovy.core.CompositeFuture
</ul>
<div class="description">
    <ul class="blockList">
        <li class="blockList">



    <p> The composite future wraps a list of <a href='../../../../io/vertx/groovy/core/Future.html' title='futures'>futures</a>, it is useful when several futures
 needs to be coordinated.
</p>

          </li>
    </ul>
</div>

<div class="summary">
    <ul class="blockList">
        <li class="blockList">
        <!-- =========== NESTED CLASS SUMMARY =========== -->
        

        <!-- =========== ENUM CONSTANT SUMMARY =========== -->
        
        <!-- =========== FIELD SUMMARY =========== -->
        

        <!-- =========== PROPERTY SUMMARY =========== -->
        

        <!-- =========== ELEMENT SUMMARY =========== -->
        

        
        <!-- ======== CONSTRUCTOR SUMMARY ======== -->
        <ul class="blockList">
                <li class="blockList"><a name="constructor_summary"><!--   --></a>
                    <h3>Constructor Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructors Summary table">
                        <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Constructor and description</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst">
                                <code><a href="#CompositeFuture(java.lang.Object)">CompositeFuture</a></strong>
                                (java.lang.Object delegate)</code><br></td>
                        </tr>
                        
                    </table>
                   </ul>
              </li>
        </ul>
        

        
        <!-- ========== METHOD SUMMARY =========== -->
        <ul class="blockList">
            
            <li class="blockList"><a name="method_summary"><!--   --></a>
                    <h3>Methods Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Methods Summary table">
                        <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Type</th>
                            <th class="colLast" scope="col">Name and description</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#all(Future<T1>, Future<T2>)">all</a></strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2)</code><br>Return a composite future, succeeded when all futures are succeeded, failed when any future is failed.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#all(Future<T1>, Future<T2>, Future<T3>)">all</a></strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3)</code><br>Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#all' title='CompositeFuture.all'>CompositeFuture.all</a> but with 3 futures.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#all(Future<T1>, Future<T2>, Future<T3>, Future<T4>)">all</a></strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T4&gt; f4)</code><br>Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#all' title='CompositeFuture.all'>CompositeFuture.all</a> but with 4 futures.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#all(Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>)">all</a></strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T4&gt; f4, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T5&gt; f5)</code><br>Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#all' title='CompositeFuture.all'>CompositeFuture.all</a> but with 5 futures.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#all(Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>, Future<T6>)">all</a></strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T4&gt; f4, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T5&gt; f5, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T6&gt; f6)</code><br>Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#all' title='CompositeFuture.all'>CompositeFuture.all</a> but with 6 futures.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#all(List<Future>)">all</a></strong>(java.util.List&lt;<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&gt; futures)</code><br>Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#all' title='CompositeFuture.all'>CompositeFuture.all</a> but with a list of futures.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#any(Future<T1>, Future<T2>)">any</a></strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2)</code><br>Return a composite future, succeeded when any futures is succeeded, failed when all futures are failed.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#any(Future<T1>, Future<T2>, Future<T3>)">any</a></strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3)</code><br>Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#any' title='CompositeFuture.any'>CompositeFuture.any</a> but with 3 futures.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#any(Future<T1>, Future<T2>, Future<T3>, Future<T4>)">any</a></strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T4&gt; f4)</code><br>Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#any' title='CompositeFuture.any'>CompositeFuture.any</a> but with 4 futures.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#any(Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>)">any</a></strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T4&gt; f4, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T5&gt; f5)</code><br>Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#any' title='CompositeFuture.any'>CompositeFuture.any</a> but with 5 futures.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#any(Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>, Future<T6>)">any</a></strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T4&gt; f4, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T5&gt; f5, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T6&gt; f6)</code><br>Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#any' title='CompositeFuture.any'>CompositeFuture.any</a> but with 6 futures.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#any(List<Future>)">any</a></strong>(java.util.List&lt;<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&gt; futures)</code><br>Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#any' title='CompositeFuture.any'>CompositeFuture.any</a> but with a list of futures.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.lang.Throwable</strong></code></td>
                            <td class="colLast"><code><strong><a href="#cause(int)">cause</a></strong>(int index)</code><br>Returns a cause of a wrapped future</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#complete(io.vertx.groovy.core.CompositeFuture)">complete</a></strong>(<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> result)</code><br>Set the result. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>io.vertx.core.Handler&lt;io.vertx.core.AsyncResult&lt;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html' title='CompositeFuture'>CompositeFuture</a>&gt;&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#completer()">completer</a></strong>()</code><br>@return an handler completing this future</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;U&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#compose(Handler<CompositeFuture>, Future<U>)">compose</a></strong>(io.vertx.core.Handler&lt;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html' title='CompositeFuture'>CompositeFuture</a>&gt; handler, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;U&gt; next)</code><br>Compose this future with a provided <code>next</code> future.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;U&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#compose(java.util.function.Function<CompositeFuture, Future<U>>)">compose</a></strong>(java.util.function.Function&lt;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html' title='CompositeFuture'>CompositeFuture</a>, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;U&gt;&gt; mapper)</code><br>Compose this future with a <code>mapper</code> function.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#failed(int)">failed</a></strong>(int index)</code><br>Returns true if a wrapped future is failed</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.lang.Object</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getDelegate()">getDelegate</a></strong>()</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#isComplete(int)">isComplete</a></strong>(int index)</code><br>Returns true if a wrapped future is completed</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#join(Future<T1>, Future<T2>)">join</a></strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2)</code><br>Return a composite future completed when all the futures are completed.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#join(Future<T1>, Future<T2>, Future<T3>)">join</a></strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3)</code><br>Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#join' title='CompositeFuture.join'>CompositeFuture.join</a> but with 3 futures.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#join(Future<T1>, Future<T2>, Future<T3>, Future<T4>)">join</a></strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T4&gt; f4)</code><br>Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#join' title='CompositeFuture.join'>CompositeFuture.join</a> but with 4 futures.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#join(Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>)">join</a></strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T4&gt; f4, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T5&gt; f5)</code><br>Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#join' title='CompositeFuture.join'>CompositeFuture.join</a> but with 5 futures.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#join(Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>, Future<T6>)">join</a></strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T4&gt; f4, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T5&gt; f5, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T6&gt; f6)</code><br>Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#join' title='CompositeFuture.join'>CompositeFuture.join</a> but with 6 futures.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#join(List<Future>)">join</a></strong>(java.util.List&lt;<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&gt; futures)</code><br>Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#join' title='CompositeFuture.join'>CompositeFuture.join</a> but with a list of futures.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;U&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#map(java.util.function.Function<CompositeFuture, U>)">map</a></strong>(java.util.function.Function&lt;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html' title='CompositeFuture'>CompositeFuture</a>, U&gt; mapper)</code><br>Apply a <code>mapper</code> function on this future.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#result()">result</a></strong>()</code><br>The result of the operation. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>T</strong></code></td>
                            <td class="colLast"><code><strong><a href="#resultAt(int)">resultAt</a></strong>(int index)</code><br>Returns the result of a wrapped future</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#setHandler(Handler<AsyncResult<CompositeFuture>>)">setHandler</a></strong>(io.vertx.core.Handler&lt;io.vertx.core.AsyncResult&lt;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html' title='CompositeFuture'>CompositeFuture</a>&gt;&gt; handler)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#size()">size</a></strong>()</code><br>@return the number of wrapped future</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#succeeded(int)">succeeded</a></strong>(int index)</code><br>Returns true if a wrapped future is succeeded</td>
                        </tr>
                        
                    </table>
                   </ul>
              </li>
            
            <li class="blockList"><a name="method_summary"><!--   --></a>
                    <h3>Inherited Methods Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Inherited Methods Summary table">
                        <caption><span>Inherited Methods</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Methods inherited from class</th>
                            <th class="colLast" scope="col">Name</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>class <a href='../../../../io/vertx/groovy/core/Future.html'>Future</a></strong></code></td>
                            <td class="colLast"><code><a href='../../../../io/vertx/groovy/core/Future.html#cause()'>cause</a>, <a href='../../../../io/vertx/groovy/core/Future.html#complete(T)'>complete</a>, <a href='../../../../io/vertx/groovy/core/Future.html#complete()'>complete</a>, <a href='../../../../io/vertx/groovy/core/Future.html#completer()'>completer</a>, <a href='../../../../io/vertx/groovy/core/Future.html#compose(Handler<T>, Future<U>)'>compose</a>, <a href='../../../../io/vertx/groovy/core/Future.html#compose(java.util.function.Function<T, Future<U>>)'>compose</a>, <a href='../../../../io/vertx/groovy/core/Future.html#fail(java.lang.Throwable)'>fail</a>, <a href='../../../../io/vertx/groovy/core/Future.html#fail(java.lang.String)'>fail</a>, <a href='../../../../io/vertx/groovy/core/Future.html#failed()'>failed</a>, <a href='../../../../io/vertx/groovy/core/Future.html#failedFuture(java.lang.String)'>failedFuture</a>, <a href='../../../../io/vertx/groovy/core/Future.html#future()'>future</a>, <a href='../../../../io/vertx/groovy/core/Future.html#getDelegate()'>getDelegate</a>, <a href='../../../../io/vertx/groovy/core/Future.html#isComplete()'>isComplete</a>, <a href='../../../../io/vertx/groovy/core/Future.html#map(java.util.function.Function<T, U>)'>map</a>, <a href='../../../../io/vertx/groovy/core/Future.html#map(V)'>map</a>, <a href='../../../../io/vertx/groovy/core/Future.html#result()'>result</a>, <a href='../../../../io/vertx/groovy/core/Future.html#setHandler(Handler<AsyncResult<T>>)'>setHandler</a>, <a href='../../../../io/vertx/groovy/core/Future.html#succeeded()'>succeeded</a>, <a href='../../../../io/vertx/groovy/core/Future.html#succeededFuture()'>succeededFuture</a>, <a href='../../../../io/vertx/groovy/core/Future.html#succeededFuture(T)'>succeededFuture</a></code></td>
                        </tr>
                        <tr class="altColor">
                            <td class="colFirst"><code>class java.lang.Object</strong></code></td>
                            <td class="colLast"><code>java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()</code></td>
                        </tr>
                    </table>
                   </ul>
              </li>
                
        </ul>
        
    </li>
    </ul>
</div>

<div class="details">
    <ul class="blockList">
        <li class="blockList">
           

            

            

            

            
            <!-- =========== CONSTRUCTOR DETAIL =========== -->
            <ul class="blockList">
                <li class="blockList"><a name="constructor_detail">
                    <!--   -->
                </a>
                    <h3>Constructor Detail</h3>
                    
                        <a name="CompositeFuture(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><strong>CompositeFuture</strong>(java.lang.Object delegate)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                </li>
            </ul>
            


            
            <!-- =========== METHOD DETAIL =========== -->
            <ul class="blockList">
                <li class="blockList"><a name="method_detail">
                    <!--   -->
                </a>
                    <h3>Method Detail</h3>
                    
                        <a name="all(Future<T1>, Future<T2>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>all</strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2)</h4>
                                <p> Return a composite future, succeeded when all futures are succeeded, failed when any future is failed.
 <p/>
 The returned future fails as soon as one of <code>f1</code> or <code>f2</code> fails.
   <DL><DT><B>Returns:</B></DT><DD>the composite future</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>f1</code> -  future</DD><DD><code>f2</code> -  future</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="all(Future<T1>, Future<T2>, Future<T3>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>all</strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3)</h4>
                                <p> Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#all' title='CompositeFuture.all'>CompositeFuture.all</a> but with 3 futures. <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD>f1</DD><DD>f2</DD><DD>f3</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="all(Future<T1>, Future<T2>, Future<T3>, Future<T4>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>all</strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T4&gt; f4)</h4>
                                <p> Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#all' title='CompositeFuture.all'>CompositeFuture.all</a> but with 4 futures. <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD>f1</DD><DD>f2</DD><DD>f3</DD><DD>f4</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="all(Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>all</strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T4&gt; f4, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T5&gt; f5)</h4>
                                <p> Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#all' title='CompositeFuture.all'>CompositeFuture.all</a> but with 5 futures. <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD>f1</DD><DD>f2</DD><DD>f3</DD><DD>f4</DD><DD>f5</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="all(Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>, Future<T6>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>all</strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T4&gt; f4, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T5&gt; f5, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T6&gt; f6)</h4>
                                <p> Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#all' title='CompositeFuture.all'>CompositeFuture.all</a> but with 6 futures. <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD>f1</DD><DD>f2</DD><DD>f3</DD><DD>f4</DD><DD>f5</DD><DD>f6</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="all(List<Future>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>all</strong>(java.util.List&lt;<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&gt; futures)</h4>
                                <p> Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#all' title='CompositeFuture.all'>CompositeFuture.all</a> but with a list of futures.<p>

 When the list is empty, the returned future will be already completed. <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD>futures</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="any(Future<T1>, Future<T2>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>any</strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2)</h4>
                                <p> Return a composite future, succeeded when any futures is succeeded, failed when all futures are failed.
 <p/>
 The returned future succeeds as soon as one of <code>f1</code> or <code>f2</code> succeeds.
   <DL><DT><B>Returns:</B></DT><DD>the composite future</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>f1</code> -  future</DD><DD><code>f2</code> -  future</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="any(Future<T1>, Future<T2>, Future<T3>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>any</strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3)</h4>
                                <p> Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#any' title='CompositeFuture.any'>CompositeFuture.any</a> but with 3 futures. <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD>f1</DD><DD>f2</DD><DD>f3</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="any(Future<T1>, Future<T2>, Future<T3>, Future<T4>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>any</strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T4&gt; f4)</h4>
                                <p> Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#any' title='CompositeFuture.any'>CompositeFuture.any</a> but with 4 futures. <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD>f1</DD><DD>f2</DD><DD>f3</DD><DD>f4</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="any(Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>any</strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T4&gt; f4, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T5&gt; f5)</h4>
                                <p> Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#any' title='CompositeFuture.any'>CompositeFuture.any</a> but with 5 futures. <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD>f1</DD><DD>f2</DD><DD>f3</DD><DD>f4</DD><DD>f5</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="any(Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>, Future<T6>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>any</strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T4&gt; f4, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T5&gt; f5, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T6&gt; f6)</h4>
                                <p> Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#any' title='CompositeFuture.any'>CompositeFuture.any</a> but with 6 futures. <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD>f1</DD><DD>f2</DD><DD>f3</DD><DD>f4</DD><DD>f5</DD><DD>f6</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="any(List<Future>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>any</strong>(java.util.List&lt;<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&gt; futures)</h4>
                                <p> Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#any' title='CompositeFuture.any'>CompositeFuture.any</a> but with a list of futures.<p>

 When the list is empty, the returned future will be already completed. <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD>futures</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="cause(int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.lang.Throwable <strong>cause</strong>(int index)</h4>
                                <p> Returns a cause of a wrapped future <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>index</code> -  the wrapped future index</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="complete(io.vertx.groovy.core.CompositeFuture)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>void <strong>complete</strong>(<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> result)</h4>
                                <p> Set the result. Any handler will be called, if there is one, and the future will be marked as completed.
   <DL><DT><B>Parameters:</B></DT><DD><code>result</code> -  the result</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="completer()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>io.vertx.core.Handler&lt;io.vertx.core.AsyncResult&lt;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html' title='CompositeFuture'>CompositeFuture</a>&gt;&gt; <strong>completer</strong>()</h4>
                                <p>
   <DL><DT><B>Returns:</B></DT><DD>an handler completing this future</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="compose(Handler<CompositeFuture>, Future<U>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;U&gt; <strong>compose</strong>(io.vertx.core.Handler&lt;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html' title='CompositeFuture'>CompositeFuture</a>&gt; handler, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;U&gt; next)</h4>
                                <p> Compose this future with a provided <code>next</code> future.<p>

 When this (the one on which <code>compose</code> is called) future succeeds, the <code>handler</code> will be called with
 the completed value, this handler should complete the next future.<p>

 If the <code>handler</code> throws an exception, the returned future will be failed with this exception.<p>

 When this future fails, the failure will be propagated to the <code>next</code> future and the <code>handler</code>
 will not be called.
   <DL><DT><B>Returns:</B></DT><DD>the next future, used for chaining</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>handler</code> -  the handler</DD><DD><code>next</code> -  the next future</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="compose(java.util.function.Function<CompositeFuture, Future<U>>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;U&gt; <strong>compose</strong>(java.util.function.Function&lt;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html' title='CompositeFuture'>CompositeFuture</a>, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;U&gt;&gt; mapper)</h4>
                                <p> Compose this future with a <code>mapper</code> function.<p>

 When this future (the one on which <code>compose</code> is called) succeeds, the <code>mapper</code> will be called with
 the completed value and this mapper returns another future object. This returned future completion will complete
 the future returned by this method call.<p>

 If the <code>mapper</code> throws an exception, the returned future will be failed with this exception.<p>

 When this future fails, the failure will be propagated to the returned future and the <code>mapper</code>
 will not be called.
   <DL><DT><B>Returns:</B></DT><DD>the composed future</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>mapper</code> -  the mapper function</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="failed(int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>boolean <strong>failed</strong>(int index)</h4>
                                <p> Returns true if a wrapped future is failed <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>index</code> -  the wrapped future index</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getDelegate()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.lang.Object <strong>getDelegate</strong>()</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="isComplete(int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>boolean <strong>isComplete</strong>(int index)</h4>
                                <p> Returns true if a wrapped future is completed <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>index</code> -  the wrapped future index</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="join(Future<T1>, Future<T2>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>join</strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2)</h4>
                                <p> Return a composite future completed when all the futures are completed.
 <p/>
 Succeeded when all futures are succeeded, failed when any future is failed.
   <DL><DT><B>Returns:</B></DT><DD>the composite future</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>f1</code> -  future</DD><DD><code>f2</code> -  future</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="join(Future<T1>, Future<T2>, Future<T3>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>join</strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3)</h4>
                                <p> Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#join' title='CompositeFuture.join'>CompositeFuture.join</a> but with 3 futures. <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD>f1</DD><DD>f2</DD><DD>f3</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="join(Future<T1>, Future<T2>, Future<T3>, Future<T4>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>join</strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T4&gt; f4)</h4>
                                <p> Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#join' title='CompositeFuture.join'>CompositeFuture.join</a> but with 4 futures. <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD>f1</DD><DD>f2</DD><DD>f3</DD><DD>f4</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="join(Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>join</strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T4&gt; f4, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T5&gt; f5)</h4>
                                <p> Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#join' title='CompositeFuture.join'>CompositeFuture.join</a> but with 5 futures. <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD>f1</DD><DD>f2</DD><DD>f3</DD><DD>f4</DD><DD>f5</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="join(Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>, Future<T6>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>join</strong>(<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T1&gt; f1, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T2&gt; f2, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T3&gt; f3, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T4&gt; f4, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T5&gt; f5, <a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;T6&gt; f6)</h4>
                                <p> Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#join' title='CompositeFuture.join'>CompositeFuture.join</a> but with 6 futures. <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD>f1</DD><DD>f2</DD><DD>f3</DD><DD>f4</DD><DD>f5</DD><DD>f6</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="join(List<Future>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>join</strong>(java.util.List&lt;<a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&gt; futures)</h4>
                                <p> Like <a href='../../../../io/vertx/groovy/core/CompositeFuture.html#join' title='CompositeFuture.join'>CompositeFuture.join</a> but with a list of futures.<p>

 When the list is empty, the returned future will be already completed. <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD>futures</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="map(java.util.function.Function<CompositeFuture, U>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../io/vertx/groovy/core/Future.html' title='Future'>Future</a>&lt;U&gt; <strong>map</strong>(java.util.function.Function&lt;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html' title='CompositeFuture'>CompositeFuture</a>, U&gt; mapper)</h4>
                                <p> Apply a <code>mapper</code> function on this future.<p>

 When this future succeeds, the <code>mapper</code> will be called with the completed value and this mapper
 returns a value. This value will complete the future returned by this method call.<p>

 If the <code>mapper</code> throws an exception, the returned future will be failed with this exception.<p>

 When this future fails, the failure will be propagated to the returned future and the <code>mapper</code>
 will not be called.
   <DL><DT><B>Returns:</B></DT><DD>the mapped future</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>mapper</code> -  the mapper function</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="result()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>result</strong>()</h4>
                                <p> The result of the operation. This will be null if the operation failed.
   <DL><DT><B>Returns:</B></DT><DD>the result or null if the operation failed.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="resultAt(int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>T <strong>resultAt</strong>(int index)</h4>
                                <p> Returns the result of a wrapped future <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>index</code> -  the wrapped future index</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="setHandler(Handler<AsyncResult<CompositeFuture>>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../io/vertx/groovy/core/CompositeFuture.html'>CompositeFuture</a> <strong>setHandler</strong>(io.vertx.core.Handler&lt;io.vertx.core.AsyncResult&lt;<a href='../../../../io/vertx/groovy/core/CompositeFuture.html' title='CompositeFuture'>CompositeFuture</a>&gt;&gt; handler)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="size()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>int <strong>size</strong>()</h4>
                                <p>
   <DL><DT><B>Returns:</B></DT><DD>the number of wrapped future</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="succeeded(int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>boolean <strong>succeeded</strong>(int index)</h4>
                                <p> Returns true if a wrapped future is succeeded <DL><DT><B>Returns:</B></DT><DD></DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>index</code> -  the wrapped future index</DD></DL></p>
                            </li>
                        </ul>
                    
                </li>
            </ul>
            
        </li>
    </ul>
</div>

<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
    <!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
    <!--   -->
</a>
    <ul class="navList" title="Navigation">
        <li><a href="../../../../overview-summary.html">Overview</a></li>
        <li><a href="package-summary.html">Package</a></li>
        <li class="navBarCell1Rev">Class</li>
        <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
        <li><a href="../../../../index-all.html">Index</a></li>
        <li><a href="../../../../help-doc.html">Help</a></li>
    </ul>
</div>

<div class="subNav">
    <div>
        <ul class="navList">
            <li><a href="../../../../index.html?io/vertx/groovy/core/CompositeFuture" target="_top">Frames</a></li>
            <li><a href="CompositeFuture.html" target="_top">No Frames</a></li>
        </ul>
    </div>
    <div>
        <ul class="subNavList">
            <li>Summary:&nbsp;</li>
            Nested&nbsp;&nbsp;&nbsp;Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#constructor_summary">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_summary">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
        <ul class="subNavList">
            <li>&nbsp;|&nbsp;Detail:&nbsp;</li>
            Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#constructor_detail">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_detail">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
    </div>
    <p>Groovy Documentation</p>
    <a name="skip-navbar_bottom">
        <!--   -->
    </a>
    </div>
</div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>